#ifndef TERM_H
#define TERM_H

#include <iostream>

class Term {
private:
    int coef{};
public:
    friend class Polynomial;
    int power{};
    Term(int cf = 0, int pow = 0);
    Term(const std::string& inp);
    friend Term operator+(const Term& t1, const Term& t2);
    friend Term operator*(const Term& t1, const Term& t2);
    friend std::istream& operator>>(std::istream& is, Term& t);
    friend std::ostream& operator<<(std::ostream& os, const Term& t);
    friend bool operator<(const Term& t1, const Term& t2);
};

#endif // TERM_H